<!-- 导航条组件 -->
<template>
  <div class="nav-bar">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="center">
      <slot name="center"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script scoped>
export default {
  name: "",
  data() {
    return {};
  },
  components: {}
};
</script>

<style>
.nav-bar {
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  display: flex;
  justify-items: center;
  align-items: center;
}
.left {
  flex: 1;
  height: 100%;
}
.center {
  flex: 4;
  height: 100%;
}
.right {
  flex: 1;
  height: 100%;
}
</style>
